<?php
$params = array_merge(
    require(__DIR__ . '/../../common/config/params.php'),
    require(__DIR__ . '/../../common/config/params-local.php'),
    require(__DIR__ . '/params.php'),
    require(__DIR__ . '/params-local.php')
);

return [
    'id' => 'app-console',
    'basePath' => dirname(__DIR__),
    'bootstrap' => ['log'],
    'controllerNamespace' => 'console\controllers',
    'controllerMap' => [
        'rbac' => [
            'class' => 'easydowork\rbacBackup\RbacController',
            'cachePath' => '@console/runtime/rbac',
            'tableList' => [
                'auth_rule',
                'auth_item',
                'auth_item_child',
                'menu',
            ]
        ],
    ],
    'components' => [
        'log' => [
            'targets' => [
                [
                    'class' => 'yii\log\FileTarget',
                    'levels' => ['error', 'warning'],
                ],
            ],
        ],'authManager' => [
            'class' => 'yii\rbac\DbManager', // 或者使用  'yii\rbac\DbManager'
        ],
    ],
    'params' => $params,
];
